package com.itlong.cloud.POJO.VO.property;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <desc>
 *      物业缴费记录VO
 * </desc>
 *
 * @createDate2020/7/15
 **/
@Data
@NoArgsConstructor
public class PropertyPaymentRecordVO {
    private String projectName;     //项目id+名称
    private String paymentAmount;   //缴费金额
    private String roomId;          //楼栋+单元+房间（房间名）
    private String paymentCount;    //缴费次数
    private String recordType;      //记录类型 1缴费 2退费
    private String createTime;      //创建时间
    private String paymentType;    //缴费方式 1在线缴费 2线下缴费
    private String operateUserName; //操作人姓名
    private String remark;          //备注
    private String paymentId;       //缴费记录id

    /**
     * <desc>
     *      获取记录类型字符串
     * </desc>
     *
     * @param recordType 记录类型
     * @return
     * @Author Zhu.yj
     * @createDate  2020/7/20
     */
    public String getRecordTypeString(String recordType){
        if ("1".equals(recordType)){
            return "缴费";
        }
        if ("2".equals(recordType)){
            return "退费";
        }
        return "";
    }

    /**
     * <desc>
     *      获取缴费类型字符串
     * </desc>
     *
     * @param paymentAmount
     * @return
     * @Author Zhu.yj
     * @createDate  2020/7/20
     */
    public String getPaymentTypeString(String paymentAmount){
        if ("1".equals(paymentAmount)){
            return "在线缴费";
        }
        if ("2".equals(paymentAmount)){
            return "线下缴费";
        }
        return "";
    }
}
